<?php
declare (strict_types=1);

namespace app\common\enum\user\pointsLog;

/**
 * 积分变动场景枚举类
 * Class Scene
 * @package app\common\enum\user\pointsLog
 */
class Scene
{
    // 用户充值
    const RECHARGE = 10;

    // 用户消费
    const CONSUME = 20;

    // 管理员操作
    const ADMIN = 30;

    // 积分兑换
    const REDEEM = 40;

    /**
     * 获取类型值
     * @return array
     */
    public static function data(): array
    {
        return [
            self::RECHARGE => [
                'name' => '用户充值',
                'value' => self::RECHARGE,
                'describe' => '用户充值：%s',
            ],
            self::CONSUME => [
                'name' => '用户消费',
                'value' => self::CONSUME,
                'describe' => '用户消费：%s',
            ],
            self::ADMIN => [
                'name' => '管理员操作',
                'value' => self::ADMIN,
                'describe' => '后台管理员 [%s] 操作',
            ],
            self::REDEEM => [
                'name' => '积分兑换',
                'value' => self::REDEEM,
                'describe' => '积分兑换：%s',
            ]
        ];
    }
}